package com.shop.admin.validate.paper;

import com.shop.common.validator.annotation.Mobile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
@ApiModel("考试任务指派创建参数")
public class PaperAssignCreateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "paperId参数缺失")
    @ApiModelProperty(value = "试卷ID")
    private String paperId;

    @NotNull(message = "userType参数缺失")
    @ApiModelProperty(value = "用户类型，1技师，2合伙人")
    private Integer userType;

    @NotNull(message = "userMobile参数缺失")
    @ApiModelProperty(value = "用户手机")
    @Mobile(message = "用户手机格式错误")
    private String userMobile;

    @ApiModelProperty(value = "天数限制")
    @Min(value = 0, message = "天数限制不能小于0")
    private Integer days;
}
